#ifndef IRCMAINWINDOW_H
#define IRCMAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class IRCMainWindow;
}

class QIrcService;
class MsgStreamWidget;

class IRCMainWindow : public QMainWindow {
    Q_OBJECT
public:
    explicit IRCMainWindow(QWidget *parent = 0);
    ~IRCMainWindow();

protected:
    void changeEvent(QEvent *e);

protected slots:
    void connectToServerAction();
    void disconnectAction();

    void serverResponse(QString);
    void onPrivateMessage(QString from, QString to, QString msg);
    void onJoinEvent(QString user, QString channel);

private:
    Ui::IRCMainWindow *ui;
    QIrcService* m_irc;
};

#endif // IRCMAINWINDOW_H
